package com.zxp.dubbo.service.impl;

import com.zxp.client.User;
import com.zxp.client.UserService;
import lombok.SneakyThrows;

import java.lang.management.ManagementFactory;
import java.util.List;

/**
 * @author zxp
 * @date 2021-08-24 9:38
 */
public class UserServiceImpl implements UserService {

    @SneakyThrows
    @Override
    public User getUser(Integer id) {

        return new User(id,"jim " + ManagementFactory.getRuntimeMXBean().getName());
    }

    @Override
    public List<User> findUser(String city, String sex) {
        return null;
    }
}
